package fourzerofour.yangqiang.day03;

public class myNumber {
    private int n1;
    private int n2;
    //方法一
    public int addition(int n1,int n2){
        return n1+n2;
       }
    public int subtration(int n1,int n2){
        return n1-n2;
    }
    public int multiplication(int n1,int n2) {
        return n1 * n2;
    }
    public int division(int n1,int n2) {
        return n1 / n2;
    }
    //方法二
    public static void addition1(int n1,int n2){
        System.out.println(n1+n2);
    }
    public static void subtration1(int n1,int n2){
        System.out.println(n1-n2);
    }
    public static void multiplication1(int n1,int n2){
        System.out.println(n1*n2);
    }
    public static void division1(int n1,int n2){
        System.out.println(n1/n2);
    }
}
